package cn.xqapp.DiscardServer;

import cn.xqapp.core.BaseServer;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class DiscardServer extends BaseServer {

    public DiscardServer(int port)
    {
        super(port, ()->new ChannelInitializer<SocketChannel>() {
            @Override
            public void initChannel(SocketChannel ch) {
                ch.pipeline().addLast(new DiscardServerHandler());
            }
        });
    }
}
